package yl.hs.bmipfull.pojo.system;

import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.util.Date;

/*
 * SearchViewUpdateEntity
 * @category
 * @author 谢景广
 * @date 2021-12-04
 */
@DBTable(mapCode = "search_view_use_update",disName ="用户视图使用更新" )
public class SearchViewUpdateEntity extends BaseEntity {
    private Long id;
            private String viewSN;
    private String userSN;
            private Long lastUseView;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getViewSN() {
        return viewSN;
    }

    public void setViewSN(String viewSN) {
        this.viewSN = viewSN;
    }

    public String getUserSN() {
        return userSN;
    }

    public void setUserSN(String userSN) {
        this.userSN = userSN;
    }

    public long getLastUseView() {
        return lastUseView;
    }

    public void setLastUseView(long lastUseView) {
        this.lastUseView = lastUseView;
    }

    public SearchViewUpdateEntity() {
    }

    public SearchViewUpdateEntity(String viewSN, String userSN) {
        this.viewSN = viewSN;
        this.userSN = userSN;
        this.lastUseView = (new Date()).getTime();
    }
}
